package com.tangyuan.live.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tangyuan.live.entity.vo.LiveRoomListVo;
import com.tangyuan.live.entity.vo.MyLiveVo;
import com.tangyuan.model.live.LiveRoom;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface LiveRoomMapper extends BaseMapper<LiveRoom> {

    Page<LiveRoomListVo> getLiveRoomList(Page<LiveRoom> liveRoomPage, @Param(Constants.WRAPPER) QueryWrapper<LiveRoom> wrapper);

    Page<MyLiveVo> getMyLiveList(Page<LiveRoom> liveRoomPage,@Param(Constants.WRAPPER) QueryWrapper<LiveRoom> wrapper);

}




